<div class="content">
<?php if(isset($item)): ?>
<? echo $item['text1']; ?>
<!--start images-->
<br /><br />
<? $cnt = 0; ?>
<? if (isset($images[$item['id']])): ?>
<table class="items" width="100%">
	<tr>
		<td width="100%" align="center">
			<div id="triggers">
				<table>
					<tr>
					<? foreach ($images[$item['id']] as $image): ?>
						<td style="width: 33%;" class="padding10">
							<a href="/content/directory/images/home/fullsize/<?=strtolower(substr($image['alias'], 0, 1)) . '/' . $image['alias'] ?>.jpg" title="<?=Html::chars($image['name']) ?>">
								<img src="/content/directory/images/home/thumbs/<?=strtolower(substr($image['alias'], 0, 1)) . '/' . $image['alias'] ?>.jpg" alt="" class="image" />
							</a>
						<br /><br />
						</td>
					<? $cnt++ ?>
					<? if (($cnt % 4 == 0)): ?>
					</tr><tr>
			<? endif; ?>
					<? endforeach; ?>
					</tr>
				</table>
			</div>
			
		</td>
	</tr>
	</table>
<? endif; ?>
<br clear="all" />
<!--end images-->
<?php endif; ?>
<p style="color:#d09022; font-size:14px; float:right; padding-right:20px;">
		<a href="#top" id="bottomLink">Top</a>
	</p>
</div>
<div class="overlay" id="gallery">
	<a class="prev">prev</a>
	<a class="next">next</a>
	<div class="info"></div>
	<img class="progress" src="/images/jquerytools/overlay/loading.gif" />
</div>